package com.ygqh.baby.service;

import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.ao.ResultSet;
import com.ygqh.baby.po.YgProductCombinationDetail;

import java.util.Date;
import java.util.List;

public interface YgProductCombinationDetailService {


    List<YgProductCombinationDetail> find();

    int findCount();

    YgProductCombinationDetail findById(Long id);

    int deleteSoft(Long[] ids);

    int deleteSoft(Long id);

    int save(YgProductCombinationDetail ygProductCombinationDetail);

    int update(YgProductCombinationDetail ygProductCombinationDetail);

    ResultSet<YgProductCombinationDetail> search(QueryInfo queryInfo, String q);


    int saveOrUpdate(Long productCombinationId, Long[] productIds, String updateBy, Date updateTime);

    int addBatch(Long productCombinationId, Long[] productIds, String updateBy, Date updateTime);

    int delete(Long productCombinationId, List<Long> productIds, String updateBy, Date updateTime);
}
